<%@page import="uodm.server.Utils"%>
<%@page import="com.google.appengine.api.users.UserService"%>
<%@page import="com.google.appengine.api.users.UserServiceFactory"%>

<iframe src="javascript:''" id="__gwt_historyFrame" tabIndex='-1'
	style="position: absolute; width: 0; height: 0; border: 0"></iframe>
<noscript>
	<h1>A JavaScript-enabled browser is required to view this page
		properly.</h1>
</noscript>
<div class="page-header">
	<%
		UserService userService = UserServiceFactory.getUserService();
		if (userService.getCurrentUser() == null) {
			response.sendRedirect(UserServiceFactory.getUserService()
					.createLoginURL(Utils.getFullRequestUrl(request)));
			// pageContext.forward(Utils.getFullRequestUrl(request));
		} else {
	%>
	<b><%=request.getUserPrincipal().getName()%></b> | <a
		href="<%=userService.createLogoutURL(request.getRequestURL()
						.toString())%>">Log
		out</a>
	<%
		}
	%>
	<hr />
</div>
